package com.redwine.app.utils;

import android.os.Environment;

/**
 * Created by tian on 15/4/17:下午5:58.
 */
public class Constants {
    public static final int REQ_TIMEOUT = 35000;
    //qcl这里是绑定账号时不同的第三方平台对应的数字
    public static final int LOGIN_TYPE_QQID = 1;
    public static final int LOGIN_TYPE_SINAID = 2;
    public static final int LOGIN_TYPE_WXID = 3;
    public static final int LOGIN_TYPE_ALIPAY = 4;
    //    qcl这个是虎嗅qq登录的appid
    public static final String TENCENT_APP_ID = "1106011041";

    //    支付宝
    private static final String APP_ID_ONLINE_OFFICIAL_SIGNATURE = "2017062907594102";


    public static String APP_ID_ZFB = APP_ID_ONLINE_OFFICIAL_SIGNATURE;

    /**
     * 支付宝账户登录授权业务：入参pid值
     */
    public static final String PID = "2088901473381011";

    /**
     * 支付宝账户登录授权业务：入参target_id值
     */
    public static String TARGET_ID = "";


    //qcl这是七牛图片处理技术，可以极大的缩小图片大小，并且还是高清显示，
    public static final String IMAGE_WEBP = "?imageMogr2/strip/interlace/1/format/webp";

    //qcl这是七牛图片处理技术，可以极大的缩小图片大小，并且还是高清显示，
    public static final String IMAGE_WEBP_FEED = "?imageView2/1/w/800/h/450/interlace/1/format/jpg/imageMogr2/strip/";


    // SINA
    public static final String SinaAppKey = "172847711";

    public static final String SinaAppRedirectURI = "https://app.mjimg.com/";

    public static final String SinaScope = "f2d14c52f39f875fab5e3fc7dbb421ce";

    //qcl微信相关
    public static final String WECHAT_KEY = "wxe9e685acf0407a6f";

    public static final String WECHAT_SECRECT = "46030b60baa2d636e0b15e90c73ae3e8";


    //上面是虎嗅的
    public static final String APP_ID = "1000024";

    public static final String APP_SECRET = "47016d2f0c7d4997afe617f912a5e308";

    public static final String MOBILE_KEY = "mobile";

    public static final String VERIFY_CODE_KEY = "verify_code";

    public static final String URL_KEY = "url";

    public static final String LIKE_KEY = "like";


    public static final String COMMENT_ITEM_KEY = "comment_item_key";


    public static final String PDF_ITEM_KEY = "pdf_item_key";

    //文章id
    public static final String ARTICLE_ID_KEY = "article_id";
    //动态ID
    public static final String MOMENT_ID_KEY = "article_id";
    public static final String ARTICLE_URL_KEY = "article_url";

    public static final String COMMENT_ID_KEY = "pid";
    public static final String HUATI_ID_KEY = "hid";
    public static final String USER_KEY = "user";
    public static final String USER_UID = "uid";


    public static final String IS_OPEN_SOFEWINDOW = "is_open_sofewindow";

    public static final String PDF_H5_URL = "pdf_h5_url";

    //活动id
    public static final String ACTIVITY_ID_KEY = "activity_id";

    public static final String REPLYNAME = "replyname";

    public static final String MI_PUSH_APP_ID = "2882303761517326961";

    public static final String MI_PUSH_APP_KEY = "5421732632961";

    public static final String MI_PUSH_APP_SECRET = "3xFmj+Ci9WigBY0bqWnXTQ==";

    public static final String USER_ID_KEY = "user_id";

    public static final String INTENT_USER_LOGGED_IN = "intent_user_logged_in";

    public static final String INTENT_USER_LOGGED_OUT = "intent_user_logged_out";
    //    搜索关键字改变
    public static final String INTENT_SEARCH_CHANGE = "intent_search_change";

    public static final String INTENT_QUNZU_JOIN_CHANGE = "intent_qunzu_join_chang";//加入或者退出群组


    public static final String WEB_TITLE_KEY = "title";

    public static final String SPARE_ID_KEY = "spare_id";

    public static final String ACTION_WECHAT_LOGIN = "wechat_login";

    public static final String COMMENT_TYPE = "COMMENTTYPE";


    public static final int GROUP_OF_MYGROUP = 1;


    public static final int GROUP_OF_FINDGROUP = 2;
    public static final String GROUP_FINDGROUP_ITEM_KEY = "group_findgroup_item_key";
    public static final String GROUP_MYGROUP_ITEM_KEY = "group_mygroup_item_key";
    public static final String GROUP_HUTTI_ITEM_KEY = "group_myhuati_item_key";

    public static final String GROUP_GROUP_ITEM_KEY = "group_group_item_key";
    public static final String GROUP_GROUP_ITEM_ID = "group_group_item_id";
    public static final String GROUP_HUATI_ITEM_ID = "group_huati_item_id";
    //    qcl
    public static final String ACTION_JOIN_FORUM = "join_quit_forum";
    public static final String INTENT_USER_BIND_OK = "intent_user_bind_ok";


    public static final String INTENT_HUATICOMMENT_SUCCESS = "intent_huaticomment_success";
    //关注成功 关注失败广播 热议
    public static final String INTENT_REYIATTITION_STATEUS = "intent_reyiattition_stateus";

    //关注成功 关注失败广播 热议
    public static final String INTENT_ADAPTER_FULSH = "intent_adapter_fulsh";


    public static final String INTENT_GUANZHU_STATEUS_CHANGE = "intent_guanzhu_stateus_change";
    public static final String INTENT_HUATI_SUCCESS = "intent_huati_success";
    public static final String INTENT_ARTICLE_COMMENT_SUCCESS = "intent_article_comment_success";


    public static final String INTENT_HUODONG_STATEUS_CHANGE = "intent_huodong_stateus_change";
    public static final String INTENT_HUODONG_COMMENT_SUCCESS = "intent_huodong_comment_success";

    public static final String INTENT_ARTICLE_COMMENTPAGE_SUCCESS = "intent_article_commentpage_success";

    public static final String INTENT_MYCOMMENT_NUM = "intent_mycomment_num";
    public static final String INTENT_REMARKCOMMENT_NUM = "intent_remarkcomment_num";
    public static final String COMMENT_NUM = "comment_num";


    public static final String COMMENT_ADD = "comment_add";
    public static final String HUATICOMMENT_ADD = "huaticomment_add";


    public static final int FLING_MIN_VELOCITY = 200;


    public static String version_name = "";



    public static final String PUSH_TYPE="type";

    public static final String PUSHARTICLE="PushArticle";

    public static final String PUSHID="PushId";

    public static final String PUSHMOMENT="PushMoment";

    public static final String PUSHFLIGHT="PushFlight";

    public static final String PUSHACTIVE="PushActive";


    public static final String PUSHMESSAGE="PushMessage";


    public static final String HISTORY_BOOKS="HistoryBooks";




    //    qcl加载时间，显示重新加载
    public static long TIME_RELOADE = 20000;

    public static String ACTIVE = "active/";

    public static String REYI = "reyi/";

    public static String ARTICLE = "article/";
    public static String WX_TYPE = "";
    public static final String WX_SHARE = "wx_share";
    public static final String WX_LOGIN = "wx_login";

    //支付宝分享或者登陆后的回调
    public static String ZFB_TYPE = "";
    public static final String ZFB_SHARE = "zfb_share";
    public static final String ZFB_LOGIN = "zfb_login";


    public static final String UMENG_UPDATE_INTENT_KEY = "umeng_update_intent_key";


    public static final String app_andorid_weixin = "?f=app_android_weixin";
    public static final String app_andorid_friends = "?f=app_android_friends";
    public static final String app_andorid_weibo = "?f=app_android_weibo";
    public static final String app_android_qq = "?f=app_android_qq";


    public static final String app_rec_android_weixin = "?f=app_rec_android_weixin";
    public static final String app_rec_android_friends = "?f=app_rec_android_friends";
    public static final String app_rec_android_qq = "?f=app_rec_android_qq";
    public static final String app_rec_android_weibo = "?f=app_rec_android_weibo";

    //v3.2.2活动分享后缀
    public static final String app_huodong_android_weixin = "?f=app_act_android_weixin";
    public static final String app_huodong_android_friends = "?f=app_act_android_friends";
    public static final String app_huodong_android_qq = "?f=app_act_android_qq";
    public static final String app_huodong_android_weibo = "?f=app_act_android_weibo";

    //    v3.2.1红点消失发送广播
    public static final String RED_STATE_GONE = "red_state_gone";//隐藏红点
    public static final String RED_STATE_MINEFRAGMENT_SHOW = "red_state_minefragment_show";//显示红点
    public static final String ACTION_DOWNLOAD_PROGRESS = "my_download_progress";
    public static final String ACTION_DOWNLOAD_SUCCESS = "my_download_success";
    public static final String ACTION_DOWNLOAD_FAIL = "my_download_fail";
    //v3.3.3个人中心会员选中活动
    public static final String SELSECT_HUODONG = "selsect_huodong";//选中活动
    public static final String SELSECT_MINE = "selsect_mine";//选中个人中心
    public static final String SELSECT_BOOK = "selsect_book";//选中书架

    public static final String UPDATE_VIPINFO = "update_vipinfo";

    // V3.3.3   PDF下载的文件都在这个文件夹下面保存
    public static final String PDF_DOWNLOAD_FOLDER = Environment.getExternalStorageDirectory() +
            "/download"; //下载管理目标文件夹


    public static int IS_DOWNLAODING = Constants.NO_DOWNLAOD;

    public static final int NO_DOWNLAOD = 1;

    public static final int OVER_DOWNLAOD = 2;

    public static final int DOWNLAODING = 3;


    public static String USER_AGENT_DEFAULT = "";

    public static final int wechat_pay = 1;

    public static final int zhifubao_pay = 2;


    public static final String TICKET_ONE_PRICE = "ticket_one_price";

    public static final String TICKET_TYPE = "ticket_type";

    public static final String TICKET_NUM = "ticket_num";


    public static final String TICKET_ALL_PRICE = "ticket_all_price";

    public static final String TICKET_INFO = "ticket_info";

    //    QCL订单号
    public static final String ORDER_NUM = "order_num";
    public static final String EXPIRE_TIME = "expire_time";//30分钟有效期

    // 商户PID
    public static final String PARTNER = "2088901473381011";
    // 商户收款账号
    public static final String SELLER = "marketing@huxiu.com";

    // 商户私钥，pkcs8格式
    public static final String RSA_PRIVATE = "IBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4nt90NUzGs2uUAwNuESfAOl7SnZPMYJPZX20KxCHeGcxiZ+Q9oXmOJmimhSw06e3iIWd/tonrkR/xe0Q8KFGr98LYkbZU6ppW22mMPGQbTtGFbzkf1Esv8IIqcfqVZF5z/b1p0xzpOY6GBkjdsxdD7q7D7o217ZWAT/J65TfzyXQxVQ462UA5CmtqKycptsCHcvGgxLe38mX68A3beljivn9LrXHuMHxg6KA7Jkcdp5er4I7Ikk8iB8lShnPDtPL9OO+acdSViNx4u2xRE7viuYrIleExYWcGdKgmhgTI8imyCn/LU7CShjagrl+nfcURbta19xR51h5Kn9ilXqO8QIDAQAB";
    public static final String RSA_PUBLIC = "";
    public static final String INTENT_REYI_COMMENTPAGE_SUCCESS = "intent_reyi_commentpage_success";


    public static final int REQUEST_CAMERA = 101;

    public static final int PAY_OTHER = 100;
    public static final int PAY_VIP = 101;
    public static int PAY_TYPE;

    // 用于vip支付后刷新h5页面
    public static boolean PAY_ISXUFEI = false;//续费成功

    public static boolean PAY_ISFROM_XUFEI = false;//是续费类型

    public static boolean PAYVIPSUCCESS = false;

    public static int PAY_VIP_NUM = -1;//1开通会员，2续费会员，3过期再次开通


    //view 的位置变量
    public static final String KEY_X = "key_x";

    public static final String KEY_Y = "key_y";

    public static final String KEY_HIGHT = "key_hight";

    public static final String KEY_PAGEARGS = "key_pageargs";


    public static final String key_system_status = "system_status";
    public static final String key_comment_status = "comment_status";
    public static final String key_follow_status = "follow_num";

    //v4.1新加，上次登录方式记录
    public static final String LAST_TIME_LOGGED_IN = "last_time_logged_in";


    //    文章顶部js事件
    public static final String qxk_intent = "1";

    public static final String yjbg_intent = "2";
    //文章詳情頁面 跳轉vip頁面的攔截器
    public static final String vip_page_lj = "https://m.huxiu.com/vip/app";


    public static final String INTENT_CHSOE_HY = "intent_chsoe_hy";   // 选择行业广播


    public static final String INTENT_CHOSE_COUNTRY = "intent_chose_country";   // 选择行业广播
    public static final String INTENT_FORGET_DISLOGIN = "intent_forget_dislogin";   // 选择行业广播

    public static final String INTENT_CHOSE_AREA = "intent_chose_area";   // 选择地区广播


    /*
    * eventbus传递数据时定义的一些公用的参数
    * */
     /*
    * eventbus传递数据时定义的一些公用的参数
    * */
    public static final int EVENTBUSTYPE_INDUSTRY = 1;//选中行业
    public static final int EVENTBUSTYPE_POSITION = 2;//选中职位
    public static final int EVENTBUSTYPE_FOCUS_AREAS = 3;//选中关注领域
    public static final int EVENTBUSTYPE_TICKET_OK = 4;//活动购票选择领域
    public static final int EVENTBUSTYPE_FREE_ENTRY = 5;//活动免费报名选择领域
    public static final int EVENTBUSTYPE_VIPBUY_COUNTY = 6;//会员购买页选择区号

    public static final int EVENTBUSTYPE_SEX = 7;//选中职位


    public static String intent_phone_num = "intent_phone_num";

    public static String intent_captcha_num = "intent_captcha_num";

    public static String intent_countryCode_num = "intent_countryCode_num";

    public static final String INTENT_ARTICLE_KEY = "article";

    public static final String INTENT_AD_KEY = "ad";

    public static final String INTENT_MOMENT_KEY = "moment";

    public static final String INTENT_HUO_JIANG_KEY = "huojiang";


    public static final String ME_FRAGMENT = "me_fragment";

}
